#import <Cocoa/Cocoa.h>
#import "SMRManagingWindowController.h"


extern NSString* const ALEntriesWereAddedNotification;


@class ALAddEventSheetController;
@class ALDetailToolbarViewController;
@class ALSourceListViewController;
@class ALApp;
@class ALEntryTemplate;
@class ALTemplateEditorPopoverController;

@interface ALMainWindowController : SMRManagingWindowController <NSWindowDelegate, NSSplitViewDelegate> {
	ALAddEventSheetController *addEventSheetController_;
	ALDetailToolbarViewController *detailToolbarViewController_;
	ALTemplateEditorPopoverController *templateEditorController_;
    NSView *mainSplitLeftView;
    NSView *mainSplitRightView;
}
@property (nonatomic) IBOutlet NSView *mainSplitLeftView;
@property (nonatomic) IBOutlet NSView *mainSplitRightView;
@property (nonatomic) IBOutlet NSSplitView *mainSplitView;
@property (nonatomic) IBOutlet ALSourceListViewController *sourceListViewController;
@property (nonatomic) IBOutlet NSSegmentedControl *modeSelectSegmentedControl;
@property (nonatomic) IBOutlet NSView *detailViewPlaceholder;
@property (nonatomic) IBOutlet NSView *detailToolbarViewPlaceholder;
@property (nonatomic) IBOutlet NSView *infoViewPlaceholder;
@property (nonatomic) IBOutlet NSSplitView *infoSplitView;

@property (nonatomic) IBOutlet NSTextField *tempVersionChangeField;
@property (nonatomic) IBOutlet NSButton *tempVersionChangeButton;

-(IBAction)newApps:(id)sender;
-(IBAction)newEntry:(id)sender;
-(IBAction)addEventSheetEntries:(id)sender;
-(IBAction)toggleInfoView:(id)sender;

-(ALApp *)selectedApp;
-(void)displayTemplateEditorForObject:(ALEntryTemplate *)entryTemplate inView:(NSView *)targetView withRect:(NSRect)targetRect;



-(IBAction)tempChangeVersion:(id)sender;

@end
